package com.example.remoteaction.extension.demo.client;

import java.util.List;

import com.example.remoteaction.extension.demo.client.action.GetAllSchool;
import com.example.remoteaction.extension.demo.client.action.GetSchool;
import com.example.remoteaction.extension.demo.client.action.SaveSchool;
import com.example.remoteaction.extension.demo.domain.School;
import com.google.code.gwt.remoteaction.client.RemoteAction;
import com.google.code.gwt.remoteaction.client.RemoteActionService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteActionService {
	
	@RemoteAction(GetSchool.class)
	public School getSchool(boolean fetchStudent);
	
	@RemoteAction(GetAllSchool.class)
	public List<School> getAllSchool(boolean fetchStudent);
	
	@RemoteAction(SaveSchool.class)
	public String saveSchool(List<School> schoolList);
}
